<template>
    <div class="block" style="margin-left: 50px;">
        <el-row>
            <el-col :span="24" class="qryform">
                <el-button type="success" @click="showDialog()">弹窗</el-button>
            </el-col>
        </el-row>
        <el-row>
            
        </el-row>
    </div>
</template>


<script>
// const { dialog } = require('electron')
// const { ipcRenderer } = require('electron')
export default {
    data() {
        return {
            type : 1,
        }
    },
     

    mounted() {
    },

    methods: {
        showDialog(){
            
            electron.ipcRenderer.send("showBox","haha")
            electron.ipcRenderer.send("tips","ping")
            electron.ipcRenderer.on('asynchronous-reply', (event, arg) => {
                console.log(arg) // prints "pong"
                this.$message.info(arg);
            })
        },
    }
}
</script>

<style lang="less" scoped>

</style>
